package com.fastloan.mgt.application.approve.service;

import com.fastloan.mgt.application.approve.model.ApplicationApprove;
import com.fastloan.mgt.application.approve.model.vo.ApplicationApproveVO;
import com.kawins.base.BaseService;

import java.util.List;
import java.util.Map;

/**
 * @author admins
 *         createTime 2017/11/09
 */
public interface ApplicationApproveService extends BaseService<ApplicationApprove> {

    /**
     * 初始化审批流程
     * @param applicationId
     * @return
     */
    void initialize(String applicationId);

    /**
     * 提交审批
     * @param applicationApprove
     * @return
     */
    void submitApprove(ApplicationApprove applicationApprove);

    /**
     * 查询审批信息
     * @param appApproveId
     * @return
     */
    ApplicationApproveVO queryApplicationApprove(String appApproveId);


    /**
     * 审批分页信息
     * @param map
     * @return
     */
    List<ApplicationApproveVO> queryAppApproveList(Map<String, Object> map);

    List<ApplicationApproveVO> queryApprovePlan(String applicationId);
}
